#include <iostream>
#include <stdio.h>
#include <cmath>

using namespace std;

int main() {
    int a,b;
    cin >> a >> b;
    cout << (long long)pow(a,b);
    return 0;
}